package cn.edu.scau.cmi.chenjiale.composite.clarity;

/**
 * 透明形式的组织模式
 * 
 * @author chen
 * @date 2019/04/16
 *
 */
public abstract class ClarityOrganization {
	protected String name;

	public ClarityOrganization() {

	}

	public ClarityOrganization(String name) {
		this.name = name;
	}

	/**
	 * 显示组织信息以及子组织信息
	 * 
	 * @return
	 */
	public abstract String display();

	/**
	 * 添加子组织
	 * 
	 * @param organization
	 * @return
	 */
	public abstract boolean addChild(ClarityOrganization organization);

	/**
	 * 删除子组织
	 * 
	 * @param organization
	 * @return
	 */
	public abstract boolean removeChild(ClarityOrganization organization);

}
